package com.second.app.thread.threadlocal;

/**
 * @author gyz
 * @date 2021/1/29 14:38
 */
public class Run {
    public static ThreadLocal t1;

    static {
        t1 = new ThreadLocal();
    }

    public static void main(String[] args) {
        if (t1.get() == null) {
            System.out.println("从未放过值");
            t1.set("存一个值0");
        }
        System.out.println(t1.get());
        System.out.println(t1.get());

    }
}
